package com.example.lay.broadcastreceive;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

/**
 * Created by Lay on 2014/12/10.
 */
public class MySendBroadcastAcvitity extends Activity {

    private final String ACTION = "www.lalio.xyz.receiver.FIRST_RECEIVER";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_send_broadcast);
    }

    public void send(View view){
        Intent intent =new Intent();
        intent.setAction(ACTION);
        intent.putExtra("msg","呵呵");
        sendBroadcast(intent);
    }
}

